namespace DesignPattern.Behavioral.Mediator
{
    public class User
    {
        public string UserName { get; set; }

        public User(string userName)
        {
            UserName = userName;
            ChatRoom.AddUser(this);
        }

        public void SendMessage(string message)
        {
            ChatRoom.ShowMessage(this, message);
        }
    }
}